import mpMenuApi from "@/api/declaration/mp/mpMenuApi"
import httpRequest from "@/config/axios/httpRequest"


// 获得公众号菜单列表
export const getMenuList = (accountId) => {
  return httpRequest.get(mpMenuApi.GetMenuList, { params: { accountId } })
}

// 保存公众号菜单
export const saveMenu = (accountId, menus) => {
  return httpRequest.post(mpMenuApi.SaveMenu, { accountId, menus })
}

// 删除公众号菜单
export const deleteMenu = (accountId) => {
  return httpRequest.delete(mpMenuApi.DeleteMenu, { params: { accountId } })
}
